﻿using AutoMapper;
using SU.Center.Api.Handler.RBAC;
using SU.Center.Domain.RBAC;
using SU.Center.Domain.SY;
using System.Data;

namespace SU.Center.Api
{
    public class Mapperfile : Profile
    {
        public Mapperfile()
        {
            //登录
            CreateMap<GetUserLogReesoupDto, UserInfo>().ReverseMap();

            //添加角色权限
            CreateMap<InserUserInfoRepsultDto, UserInfo>().ReverseMap();

            //添加角色权限
            CreateMap<InserRolePermissionReqsultDto, Roles>().ReverseMap();

            //树
            CreateMap<GetTreePermissionListResponseDto, Permissions>().ReverseMap();

            //新增产品
            CreateMap<InsetInformationDto, Information>().ReverseMap();
        }
    }
}
